import { handleActions as createReducer } from "redux-actions";
import { saveProducts } from "../actions/product.actions";

const initialState = []

// 将商品列表保存在store对象中
const handleSaveProducts = (state,actions) => actions.payload

export default createReducer({
  // 将商品列表保存在store对象中
  [saveProducts]: handleSaveProducts
},initialState)